//
//  QDSettingCell.m
//  simulateQuickDoctor
//
//  Created by 姚华杰 on 2017/3/23.
//  Copyright © 2017年 PipiXia. All rights reserved.
//

#import "QDSettingCell.h"

@interface QDSettingCell ()

//图片
@property (weak, nonatomic) IBOutlet UIImageView *imgView;

//内容文本
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end

@implementation QDSettingCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


//重写setter方法
-(void) setModel:(QDSettingAndHelpTableViewModel *)model {
    
    _model = model;
    _imgView.image = [UIImage imageNamed:[NSString stringWithFormat:@"%@",_model.icon]];
    
    _contentLabel.text = _model.name;
    
}


@end
